<?php /* Smarty version 2.6.22, created on 2012-05-17 15:21:45
         compiled from funcSelect.js */ ?>

<script type="text/javascript">
/* <![CDATA[ */

<?php echo '
	function selectStyle(id, opt)
	{
		selectButton(id, opt);
	}
	
	function selectButton(id, opt)
	{
		var obj = document.getElementById(id);
		if ( ! obj ) return;
		obj.setAttribute(\'class\', opt);
	}
	
	function selectTD(id, opt)
	{
		var obj = document.getElementById(id);
		if ( ! obj ) return;
		obj.style.backgroundColor = opt;
	}
	
	function valueOption(id)
	{
		var obj = document.getElementById(id);
		if ( ! obj ) return;
		return obj.options[ obj.options.selectedIndex ].value;
	}
	
	function selectOption(id, opt)
	{
		var obj = document.getElementById(id);
		if ( ! obj ) return;
		for(i = 0; i < obj.length ; i++)
		{
			if ( obj.options[i].value == opt)
			{
				obj.options.selectedIndex = i;
				break;
			}
		}
	}

	function selectOptionRegExp(id, opt)
	{
		if ( opt != "" )
		{
			var reg = new RegExp("^"+opt,"gi");
			var obj = document.getElementById(id);
			if ( ! obj ) return;
			var i = obj.length;
			while( i-- )
			{
				if ( reg.test( obj.options[i].value ) )
				{
					obj.options.selectedIndex = i;
					break;
				}
			}
		}
	}

	function selectCheck(id, opt)
	{
		if ( opt != "" )
		{
			document.getElementById(id).checked = true;
		}
	}

	function selectRadio(nome, opt)
	{
		var obj = document.forms[0].elements[nome];
		if ( ! obj ) return;
		for(i = 0; i < obj.length ; i++)
		{
			if ( obj[i].value == opt)
			{
				obj[i].checked = true;
				break;
			}
		}
	}

'; ?>

/* ]]> */
</script>